<template>
  <el-button @click="screenfull">全屏</el-button>
</template>

<script>
import ScreenFull from 'screenfull'
export default {
  methods: {
    screenfull() {
      if (!ScreenFull.isEnabled) {
        return
      }
      ScreenFull.toggle()
    }
  }
}
</script>

<style>

</style>
